home *** CD-ROM | disk | FTP | other *** search
/ Gekikoh Dennoh Club 2 / Gekikoh Dennoh Club Vol. 2 (Japan).7z / Gekikoh Dennoh Club Vol. 2 (Japan) (Track 01).bin / fsw / pd / wavemu.lzh / scc2 / fconv.c next >
Text File  |  1995-11-04  |  503b  |  31 lines

  1.  
  2. /*
  3.     周波数のテーブルを作成する
  4.     今のところ、全然使ってません(ぉぃ
  5. */
  6.  
  7. /*
  8. #include    <stdio.h>
  9. #include    <stdlib.h>
  10. #include    <sys/types.h>
  11. #include    <string.h>
  12. #include    <stdlib.h>
  13. #include    <unistd.h>
  14. #include    <math.h>
  15. */
  16.  
  17. /* 引数: table=周波数テーブルのアドレス n=使用する再生周波数 */
  18.  
  19. void TRANS(unsigned short *table,const unsigned int playfrequency)
  20.  
  21. {
  22.     unsigned int i;
  23.     float number;
  24.  
  25.     for(i=0;i<=16000;i++) {
  26.     number=16384*16*i/(playfrequency);
  27.  
  28.     table[i]=number;
  29.     }
  30. }
  31.